package cn.sfa.common.taglib;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
/**
 * 
* 类名称：FooterTag   
* 类描述： jsp页面的底部信息自定义标签类
* 创建人：lenovo   
* 创建时间：2012-2-9 上午10:25:49     
* 修改备注：   
* @version v1.0
 */
public class FooterTag extends TagSupport {

	@Override
	public int doEndTag() throws JspException {

		return super.doEndTag();
	}

	@Override
	public int doStartTag() throws JspException {

		StringBuffer buffer = new StringBuffer();
		
		String path = (String) pageContext.getRequest().getAttribute("path");
		 
		buffer.append("</div></div>");
		 
		buffer.append("<div id='footer'>"+
						"<div class='mqparty-footer'>"+
							"<script charset='UTF-8' src='"+path+"/script/mqq_footer_normal.js' type='text/javascript'></script>"+
						"</div>"+
					  "</div>"
							
				); 
		
		  
		
		buffer.append("");
		JspWriter out = pageContext.getOut();
		
		try {
			out.println(buffer.toString());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return super.doStartTag();
	}
	
	
}
